
package com.market.web.action;

import com.market.bean.Customer;

public class AdminCusModifyAction extends BaseAction2
{
    private int level = 0;
    private long id = 0;
    public String execute() throws Exception
    {
       /* DynaActionForm lf = (DynaActionForm)form;*/
        int level = getLevel();
        long id = getId();
        Customer cus = getCustomerService().FindById(id);
        cus.setLevel(level);
        getCustomerService().saveOrUpdate(cus);
        getRequest().setAttribute("id", cus.getId());
        return SUCCESS;
        //return new ActionForward("/adminCusView.do?id=" + cus.getId());
    }
    public int getLevel()
    {
        return level;
    }
    public void setLevel(int level)
    {
        this.level = level;
    }
    public long getId()
    {
        return id;
    }
    public void setId(long id)
    {
        this.id = id;
    }
   
}
